package net.dgg.dggcloud.service.jrcrm.dao.orf;

import net.dgg.dggcloud.core.minidao.annotation.MiniDao;
import net.dgg.dggcloud.core.minidao.hibernate.MiniDaoSupportHiber;
import net.dgg.dggcloud.service.jrcrm.entity.orf.OrderPayRecord;
import net.dgg.dggcloud.service.jrcrm.entity.orf.PerformancePrefit;

import java.util.List;
import java.util.Map;

/**
 *  财务 --- 核款
 *
 * @author 郭伟 2017/11/2
 */
@MiniDao
public interface PaymentDao extends MiniDaoSupportHiber<OrderPayRecord> {

    Integer countPaymentByMap(Map map);

    public List<Map> listPaymentByMap(Map map);

    public  List<Map> getOutlayMessageByMap(Map map);

    public Integer getOutlayMessageCountByMap(Map map);

    public List<Map> getAllSelectedOutlayMessageByMap(Map map);

    public void updatePaymentRecordById(Map map);

    /**
     * 根据cost_id获取所有可申请费用的列表
     * @param map
     * @return
     */
    public  List<Map> getPaymentRecordListByMap(Map map);


    public  List<Map> getOrderIdPaymentMap(Map map);

    public List<Map>  getOrderIdProductSum(Map map);

    public List<Map>  getOrderIdProductList(Map map);


}
